package com.mobai.service;

import com.mobai.mapper.OrderDao;
import com.mobai.model.Order;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Administrator
 * @version v1.0
 * @className OrderService
 * @description
 * @date 2024/5/9 星期四 15:21
 **/
@Service
public class OrderService {

    @Autowired
    OrderDao orderDao;


    public void testInsertOrder() {

        for (int i = 0; i < 10; i++) {
//            orderDao.insertOrder(100 + i, "大冰箱" + i);

            Order order = new Order();
//            order.setOrderId(11111111111111L);
            order.setUserId(100+i);
            order.setProductName("大冰箱"+i);
            orderDao.insert(order);

        }

    }
}